import request from '@/utils/request'

// 查询命令配置列表
export function listAdminCommand(query) {
  return request({
    url: '/system/adminCommand/list',
    method: 'get',
    params: query
  })
}

// 查询命令配置详细
export function getAdminCommand(id) {
  return request({
    url: '/system/adminCommand/' + id,
    method: 'get'
  })
}

// 新增命令配置
export function addAdminCommand(data) {
  return request({
    url: '/system/adminCommand',
    method: 'post',
    data: data
  })
}

// 修改命令配置
export function updateAdminCommand(data) {
  return request({
    url: '/system/adminCommand',
    method: 'put',
    data: data
  })
}

// 删除命令配置
export function delAdminCommand(id) {
  return request({
    url: '/system/adminCommand/' + id,
    method: 'delete'
  })
}

// 导出命令配置
export function exportAdminCommand(query) {
  return request({
    url: '/system/adminCommand/export',
    method: 'get',
    params: query
  })
}